/*
 * Copyright (c) 2010. raoqn
 */

package com.yfeng.goodjuhome.service;

import com.yfeng.exception.ServiceException;
import com.yfeng.goodjuhome.model.News;

import java.util.List;

/**
 * www.goodjuhome.com
 * Created by IntelliJ IDEA.
 * User: rqn
 * Date: 2010-8-14
 * Time: 14:12:06
 */
public interface INewsService {

    public int addNews(News news) throws ServiceException;

    public int deleteNews(String[] id) throws ServiceException;

    public int updateNews(News news) throws ServiceException;

    /**
     * 通过用户ID查询该用户下所有新闻，不限类别
     * @param uid
     * @return
     * @throws ServiceException
     */
    public List queryNewsByUid(String uid) throws ServiceException;

    public List queryNewsByUidAndType(String uid,String type) throws ServiceException;
    public List queryNewsByUidAndType(String uid,String type,String limit) throws ServiceException;
}
